package com.arelikebrothers.demo.java8.stream;

/**
 * Created by qiuzhongrun on 03/05/2017.
 */
public class Dragon {
    private String name;
    private boolean green;

    public Dragon(String name, boolean green) {
        setGreen(green);
        setName(name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isGreen() {
        return green;
    }

    public void setGreen(boolean green) {
        this.green = green;
    }

    @Override
    public String toString() {
        return "["+name+", "+isGreen()+"]";
    }
}
